package com.sxt.system.common;

import lombok.*;

/**
 * 处理结果
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResultObj {
    /**
     * 查询成功 失败
     */
    public static ResultObj  QUERY_SUCCESS=new ResultObj(1,"查询成功");
    public static ResultObj QUERY_ERROR=new ResultObj(-1,"查询失败");
    /**
     * 添加成功 失败
     */
    public static ResultObj ADD_SUCCESS=new ResultObj(1,"添加成功");
    public static ResultObj  ADD_ERROR=new ResultObj(-1,"添加失败");
    /**
     * 修改成功 失败
     */
    public static ResultObj UPDATE_SUCCESS=new ResultObj(1,"修改成功");
    public static ResultObj  UPDATE_ERROR=new ResultObj(-1,"修改失败");
    /**
     * 删除成功 失败
     */
    public static ResultObj  DELETE_SUCCESS=new ResultObj(1,"删除成功");
    public static ResultObj  DELETE_ERROR=new ResultObj(-1,"删除失败");
    /**
     * 操作成功 失败
     */
    public static ResultObj  OPERATE_SUCCESS=new ResultObj(1,"操作成功");
    public static ResultObj OPERATE_ERROR=new ResultObj(-1,"操作失败");
    /**
     * 分配成功 失败
     */
    public static ResultObj DISPATCH_SUCCESS=new ResultObj(1,"分配成功");
    public static ResultObj  DISPATCH_ERROR=new ResultObj(-1,"分配失败");
    /**
     * 重置成功 失败
     */
    public static ResultObj RESET_SUCCESS=new ResultObj(1,"重置成功");
    public static ResultObj  RESET_ERROR=new ResultObj(-1,"重置失败");

    private Integer code=0;
    private String msg="";

}
